package cn.edu.xmu.orderpayment.payment.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.ZonedDateTime;

/**
 * @author Xusheng Wang
 * @date 2021/12/13
 * @studentId 34520192201587
 */
@Data
public class RefundRetVo {
    @NotNull
    private Long id;
    @NotBlank
    private String tradeSn;
    @NotNull
    private Long patternId;
    @NotNull
    private Long paymentId;
    @NotNull
    private Long amount;
    @NotNull
    private Byte state;
    @NotBlank
    private String documentId;
    @NotNull
    private Byte documentType;

    private String descr;

    private SimpleAdminUserVo adjust;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime adjustTime;
    @NotNull
    private SimpleAdminUserVo creator;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime gmtCreate;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime gmtModified;

    private SimpleAdminUserVo modifier;
}
